package cn.wolfcode.web.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.web.feign.fallback.SeckillFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

//SeckillFeignApi
@FeignClient(name = "seckill-service",fallback = SeckillFeignFallback.class)
public interface SeckillFeignApi {

    /**
     * feign接口,  获取商品表信息
     * @return
     */
    @RequestMapping("/seckillProduct/queryAllCurrent")
    Result<List<SeckillProductVo>> queryAllCurrent();

}
